package matossian.j2se6.examples.enums;

public class Uso {

	public static void main(String[] args) {
		Suit c = Suit.DIAMONDS;
		printCardName(c);
	}
	
	public static void printCardName(Suit c) {
		switch (c) {
		case SPADES:
			System.out.println("Spades.");
			break;
		case HEARTS:
			System.out.println("Hearts.");
			break;
		case CLUBS:
			System.out.println("Clubs.");
			break;
		case DIAMONDS:
			System.out.println("Diamonds.");
			break;
		default:
			// No es necesario, el conjunto de valores es finito.
		}
	}

}
